import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

Vue.config.productionTip = false;
import Mint from 'mint-ui';
import {init} from './utils/realtime';
import {isLogin} from './utils';
import {initEvent} from './views/register/service';
Vue.use (Mint);
AV.init ('jrL2k7Ch5Xq1sYvAfuszevK2-gzGzoHsz', 'R3P55vWR0JayYC2BYIizfVLN');
init ();

var vm = new Vue ({
  router,
  store,
  render: h => h (App),
}).$mount ('#app');
if (isLogin ()) {
  initEvent.call (vm);
}
